package com.dingreading.cloud.soms.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.soms.dto.ReceiptRegisterDto;
import com.dingreading.cloud.soms.entity.ReceiptRegister;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2025-05-26
 */
public interface ReceiptRegisterService extends IService<ReceiptRegister> {

    Page<ReceiptRegisterDto> pageList(
            PageUtil pageUtil, String storeUid, String keyword, Integer enabled, String beginDate, String endDate
    );

    ReceiptRegister getByUid(String storeUid, String uid);

    ReceiptRegisterDto dtoGetByUid(String storeUid, String uid);

    int deleteByUid(String uid);

    List<ReceiptRegisterDto> unbindList(String storeUid, String receiptUid);

    boolean unbindReceipt(String storeUid, String orderCode, String receiptUid, String staffUid, String staffName);

    boolean updateStatus(String storeUid, String orderCode, String receiptUid, String staffUid, String staffName);
}
